package com.wwwarehouse.resource_center.bean.rules;

import java.util.List;

/**
 * @author Joseph on 2017/9/1.
 *         <p/>
 */

public class RuleDesk  {


    /**
     * list : [{"allocateTactics":"任务平均分配","allocateTacticsCode":"TASK_AVERAGE","belongBusinessUkid":"123","createTime":"2017-08-07 16:43:30","modifierId":"100","modifierName":"管剑军","ruleName":"规则2","rules":[{"conditionCode":"is_work","itemCode":"yes_work","itemName":"在岗","operator":"人","operatorCode":"HUMAN"}],"taskAllocationUkid":"52045704942327000","updateTime":"2017-08-11 14:38:33"}]
     * page : 1
     * size : 2
     * total : 3
     */

    private int page;
    private int size;
    private int total;
    private List<ListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * allocateTactics : 任务平均分配
         * allocateTacticsCode : TASK_AVERAGE
         * belongBusinessUkid : 123
         * createTime : 2017-08-07 16:43:30
         * modifierId : 100
         * modifierName : 管剑军
         * ruleName : 规则2
         * rules : [{"conditionCode":"is_work","itemCode":"yes_work","itemName":"在岗","operator":"人","operatorCode":"HUMAN"}]
         * taskAllocationUkid : 52045704942327000
         * updateTime : 2017-08-11 14:38:33
         */

        private String allocateTactics;
        private String allocateTacticsCode;
        private String belongBusinessUkid;
        private String createTime;
        private String modifierId;
        private String modifierName;
        private String ruleName;
        private String taskAllocationUkid;
        private String updateTime;
        private List<RulesBean> rules;

        public String getAllocateTactics() {
            return allocateTactics;
        }

        public void setAllocateTactics(String allocateTactics) {
            this.allocateTactics = allocateTactics;
        }

        public String getAllocateTacticsCode() {
            return allocateTacticsCode;
        }

        public void setAllocateTacticsCode(String allocateTacticsCode) {
            this.allocateTacticsCode = allocateTacticsCode;
        }

        public String getBelongBusinessUkid() {
            return belongBusinessUkid;
        }

        public void setBelongBusinessUkid(String belongBusinessUkid) {
            this.belongBusinessUkid = belongBusinessUkid;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getModifierId() {
            return modifierId;
        }

        public void setModifierId(String modifierId) {
            this.modifierId = modifierId;
        }

        public String getModifierName() {
            return modifierName;
        }

        public void setModifierName(String modifierName) {
            this.modifierName = modifierName;
        }

        public String getRuleName() {
            return ruleName;
        }

        public void setRuleName(String ruleName) {
            this.ruleName = ruleName;
        }

        public String getTaskAllocationUkid() {
            return taskAllocationUkid;
        }

        public void setTaskAllocationUkid(String taskAllocationUkid) {
            this.taskAllocationUkid = taskAllocationUkid;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public List<RulesBean> getRules() {
            return rules;
        }

        public void setRules(List<RulesBean> rules) {
            this.rules = rules;
        }

        public static class RulesBean {
            /**
             * conditionCode : is_work
             * itemCode : yes_work
             * itemName : 在岗
             * operator : 人
             * operatorCode : HUMAN
             */

            private String conditionCode;
            private String itemCode;
            private String itemName;
            private String operator;
            private String operatorCode;

            public String getConditionCode() {
                return conditionCode;
            }

            public void setConditionCode(String conditionCode) {
                this.conditionCode = conditionCode;
            }

            public String getItemCode() {
                return itemCode;
            }

            public void setItemCode(String itemCode) {
                this.itemCode = itemCode;
            }

            public String getItemName() {
                return itemName;
            }

            public void setItemName(String itemName) {
                this.itemName = itemName;
            }

            public String getOperator() {
                return operator;
            }

            public void setOperator(String operator) {
                this.operator = operator;
            }

            public String getOperatorCode() {
                return operatorCode;
            }

            public void setOperatorCode(String operatorCode) {
                this.operatorCode = operatorCode;
            }
        }
    }
}
